<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
</head>
<body>
    <div class="layui-form timo-compile">
    <form th:action="@{/system/mail/save}">
        <input type="hidden" name="id" th:if="${mail}" th:value="${mail.id}">
        <div class="layui-form-item">
            <label class="layui-form-label">邮件ID</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="messageNumber" placeholder="请输入邮件ID" th:value="${mail?.messageNumber}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">主题</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="subject" placeholder="请输入主题" th:value="${mail?.subject}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">发件人</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="fromAddress" placeholder="请输入发件人" th:value="${mail?.fromAddress}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">收件人</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="receiveAddress" placeholder="请输入收件人" th:value="${mail?.receiveAddress}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">发送时间</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="sentDate" placeholder="请输入发送时间" th:value="${mail?.sentDate}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">是否已读</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="isSeen" placeholder="请输入是否已读" th:value="${mail?.isSeen}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">邮件优先级</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="priority" placeholder="请输入邮件优先级" th:value="${mail?.priority}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">是否需要回执</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="isReplySign" placeholder="请输入是否需要回执" th:value="${mail?.isReplySign}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">邮件大小</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="size" placeholder="请输入邮件大小" th:value="${mail?.size}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">是否包含附件</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="isContainerAttachment" placeholder="请输入是否包含附件" th:value="${mail?.isContainerAttachment}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">邮件正文</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="content" placeholder="请输入邮件正文" th:value="${mail?.content}">
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <textarea placeholder="请输入内容" class="layui-textarea" name="remark">[[${mail?.remark}]]</textarea>
            </div>
        </div>
        <div class="layui-form-item timo-finally">
            <button class="layui-btn ajax-submit"><i class="fa fa-check-circle"></i> 保存</button>
            <button class="layui-btn btn-secondary close-popup"><i class="fa fa-times-circle"></i> 关闭</button>
        </div>
    </form>
</div>
<script th:replace="/common/template :: script"></script>
</body>
</html>